package top.layne.cloud.tsf.consumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author : layne
 * @Date: 2020/7/24
 * @Time: 14:59
 * Description:
 */
@FeignClient(value = "layne-cloud-tsf-provider",fallback = EchoServiceFailCallback.class)
public interface EchoService {

    @GetMapping("/echo/{message}")
    String echo(@PathVariable("message") String message);
}
